#ifndef _ROMFS_H_
#define _ROMFS_H_

#include <stdio.h>
#include <stdint.h>
#include <string.h>

#define ROMFS_DIRENT_FILE   0x00
#define ROMFS_DIRENT_DIR    0x01

struct romfs_dirent
{
    uint32_t        type;  /* dirent type */
    const char      *name; /* dirent name */
    const uint8_t   *data; /* file date ptr */
    size_t          size;  /* file size */
};

struct romfs_dirent *dfs_romfs_lookup(struct romfs_dirent *root_dirent, const char *path, size_t *size);

#endif /* __DFS_ROMFS_H__ */
